package com.cjy.service;

import com.cjy.pojo.ImageType;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

public interface ImageTypeService {

    ImageType saveImageType(ImageType ImageType);

    ImageType getImageType(Long id);

    ImageType getImageTypeByName(String name);

    Page<ImageType> listImageType(Pageable pageable);

    List<ImageType> listImageType();

    List<ImageType> listImageTypeTop(Integer size);

    ImageType updateImageType(Long id,ImageType ImageType);

    void deleteImageType(Long id);

}
